import request from '@/utils/service'

export default {
  async getInfo(pages) {
    return await request({
      url: '/api/users/info',
      method: 'get',
      params: pages
    })
  },
  async selectByHouse(_id) {
    return await request({
      url: '/api/users/house/'+_id,
      method: 'get'
    })
  },
  async check(data){
    return await request({
      url: '/api/users/check',
      method: 'post',
      data
    })
  },
  async update(data){
    return await request({
      url: '/api/users/'+ data._id,
      method: 'patch',
      data
    })
  },
}
